]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
magnifier: Remove unused return value
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 29 Jul 2021 20:14:30 +0000 (22:14 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 31 Jul 2021 17:18:08 +0000 (17:18 +0000)
Before the introduction of PointerWatcher, the method was used as
a timeout handler. That hasn't been the case since 2012, so drop
the return value.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1932>

js/ui/magnifier.js

index f170bbed01cfb5880ab003d56fd98c63562c838d..57b32cb057cf80574534647b3ab567d8eea6fb75 100644 (file)
@@ -228,7 +228,6 @@ var Magnifier = class Magnifier {
      * scrollToMousePos:
      * Position all zoom regions' ROI relative to the current location of the
      * system pointer.
-     * @returns {bool} true.
      */
     scrollToMousePos(...args) {
         const [xMouse, yMouse] = args.length ? args : global.get_pointer();
@@ -247,7 +246,6 @@ var Magnifier = class Magnifier {
             else
                 this.showSystemCursor();
         }
-        return true;
     }
 
     /**